package com.ynding.cloud.auth.server.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ynding.cloud.auth.api.admin.domain.UserDO;
import com.ynding.cloud.auth.api.admin.entity.User;
import com.ynding.cloud.common.model.bo.ResponseBean;

/**
 * <p> </p>
 *
 * @author ynding
 * @version 2021/11/1
 **/
public interface IUserService extends IService<User> {

    /**
     * 根据用户名查找用户
     * @param username
     * @return
     */
    UserDO loadUserByUsername(String username);

    /**
     * 注册
     * @param username
     * @param password
     * @return
     */
    ResponseBean userReg(String username, String password);

}
